package com.ansion.basedb.dao;

import com.ansion.basedb.dao.model.GroupModel;

import java.util.List;


/**
 * Created by apple on 14-6-24.
 */
public interface GroupDao extends CocoBaseDao {

    interface DBOperationCallback {
        void onFinished();
    }

    List<GroupModel> loadAllGroups();


    GroupModel getGroupModel(String uid);

    void saveGroup(GroupModel mGroupModel);

    void saveGroup(List<GroupModel> groupList, DBOperationCallback callback);

    void deleteGroup(String gid);


}
